<template>
    <div>
        <router-link to="/about">关于我们</router-link>
        <button @click="goAbout">跳转关于我们</button>
    </div>
</template>

<script setup lang="ts">
import { useRouter, useRoute } from "vue-router";
// const router = new useRouter;
const router = useRouter();
let goAbout = () => {
    router.push("/about");
}
</script>